package com.fangcun.service.admin;

import com.fangcun.bean.admin.agent.response.AgentGoodsResponse;
import com.fangcun.bean.admin.agent.response.AgentOrderResponse;
import com.fangcun.bean.sys.PageBean;
import com.fangcun.common.exception.ProException;
import com.fangcun.entity.Agent;
import com.fangcun.entity.AgentGoods;
import com.fangcun.entity.AgentOrder;
import com.github.pagehelper.PageInfo;

public interface AgentAdminService {
	// 代理列表
	public PageInfo<Agent> list(PageBean<Agent> request) throws ProException;

	// 修改
	public void update(Agent request) throws ProException;

	// 详情
	public Agent details(Long id) throws ProException;

	/** 某代理的商品列表 **/
	public PageInfo<AgentGoodsResponse> goodsList(PageBean<AgentGoods> request) throws ProException;

	/** 某代理的订单列表 **/
	public PageInfo<AgentOrderResponse> orderList(PageBean<AgentOrder> request) throws ProException;
}
